Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix IconButton width in style prop not working when feature flag is on #5091

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Oct 8, 2024

I saw this weird alignment on https://github.com/github/primer/issues/4028

CleanShot 2024-10-08 at 16 30 29@2x

Looking into the issue it seems that when sx is used with the IconButton, the width defined in the style prop was being ignored. This PR fixes that by ensuring the IconButton respects the width defined in the style prop when the feature flag is enabled.

Changelog

Changed

Bug fix for IconButton to respect the style prop width when the feature flag is on.

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Merge checklist

@jonrohan jonrohan requested a review from a team as a code owner October 8, 2024 23:32
Copy link

changeset-bot bot commented Oct 8, 2024

⚠️ No Changeset found

Latest commit: aa9df91

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the staff Author is a staff member label Oct 8, 2024
Copy link
Contributor

github-actions bot commented Oct 8, 2024

Uh oh! @jonrohan, the image you shared is missing helpful alt text. Check your pull request body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@jonrohan jonrohan requested review from broccolinisoup and removed request for siddharthkp October 8, 2024 23:32
@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Oct 8, 2024
Copy link
Contributor

github-actions bot commented Oct 8, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 97.09 KB (0%)
packages/react/dist/browser.umd.js 97.33 KB (0%)

@primer-integration
Copy link

👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/346286

@primer-integration
Copy link

🔴 golden-jobs completed with status failure.

Copy link
Member

@broccolinisoup broccolinisoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and we confirmed that the failing golden jobs are not related to this PR 👍🏻

@jonrohan jonrohan added this pull request to the merge queue Oct 9, 2024
Merged via the queue into main with commit 4218bef Oct 9, 2024
43 checks passed
@jonrohan jonrohan deleted the bug_fix_icon_button_with_style_inline branch October 9, 2024 01:58
@primer primer bot mentioned this pull request Oct 9, 2024
@primer primer bot mentioned this pull request Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm staff Author is a staff member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants